math/big.Float.mant (field)
164 uses
math/big (current package)
float.go#L71: mant nat
float.go#L219: return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
float.go#L372: m := len(x.mant)
float.go#L377: if x.mant[m-1]&msb == 0 {
float.go#L378: panic(fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Text('p', 0)))
float.go#L406: m := uint32(len(z.mant)) // present mantissa length in words
float.go#L428: rbit := z.mant.bit(r) & 1 // rounding bit; be safe and ensure it's a single bit
float.go#L432: sbit = z.mant.sticky(r)
float.go#L439: copy(z.mant, z.mant[m-n:]) // move n last words to front
float.go#L440: z.mant = z.mant[:n]
float.go#L459: inc = rbit != 0 && (sbit != 0 || z.mant[0]&lsb != 0)
float.go#L477: if addVW(z.mant, z.mant, lsb) != 0 {
float.go#L486: shrVU(z.mant, z.mant, 1)
float.go#L489: z.mant[n-1] |= msb
float.go#L495: z.mant[0] &^= lsb - 1
float.go#L515: z.mant = z.mant.setUint64(x << uint(s))
float.go#L566: z.mant = z.mant.setUint64(1<<63 | math.Float64bits(fmant)<<11)
float.go#L609: z.mant = z.mant.set(x.abs)
float.go#L610: fnorm(z.mant)
float.go#L658: z.mant = z.mant.set(x.mant)
float.go#L683: z.mant = z.mant.set(x.mant)
float.go#L753: u := msb64(x.mant) >> (64 - uint32(x.exp))
float.go#L798: i := int64(msb64(x.mant) >> (64 - uint32(x.exp)))
float.go#L872: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L924: mant = msb32(r.mant) >> uint(fbits-p)
float.go#L928: mant = msb32(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L992: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L1044: mant = msb64(r.mant) >> uint(fbits-p)
float.go#L1048: mant = msb64(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L1097: allBits := uint(len(x.mant)) * _W
float.go#L1109: z.abs = z.abs.shl(x.mant, exp-allBits)
float.go#L1111: z.abs = z.abs.set(x.mant)
float.go#L1113: z.abs = z.abs.shr(x.mant, allBits-exp)
float.go#L1144: allBits := int32(len(x.mant)) * _W
float.go#L1149: z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
float.go#L1153: z.a.abs = z.a.abs.set(x.mant)
float.go#L1157: z.a.abs = z.a.abs.set(x.mant)
float.go#L1195: if len(x.mant) == 0 {
float.go#L1198: if len(y.mant) == 0 {
float.go#L1223: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1224: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1226: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1233: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1234: z.mant = z.mant.add(x.mant, t)
float.go#L1236: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1237: z.mant = z.mant.add(x.mant, z.mant)
float.go#L1241: z.mant = z.mant.add(x.mant, y.mant)
float.go#L1244: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1245: z.mant = z.mant.add(t, y.mant)
float.go#L1247: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1248: z.mant = z.mant.add(z.mant, y.mant)
float.go#L1254: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1270: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1271: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1273: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1278: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1279: z.mant = t.sub(x.mant, t)
float.go#L1281: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1282: z.mant = z.mant.sub(x.mant, z.mant)
float.go#L1286: z.mant = z.mant.sub(x.mant, y.mant)
float.go#L1289: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1290: z.mant = t.sub(t, y.mant)
float.go#L1292: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1293: z.mant = z.mant.sub(z.mant, y.mant)
float.go#L1299: if len(z.mant) == 0 {
float.go#L1307: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1326: z.mant = z.mant.sqr(x.mant)
float.go#L1328: z.mant = z.mant.mul(x.mant, y.mant)
float.go#L1330: z.setExpAndRound(e-fnorm(z.mant), 0)
float.go#L1347: xadj := x.mant
float.go#L1348: if d := n - len(x.mant) + len(y.mant); d > 0 {
float.go#L1350: xadj = make(nat, len(x.mant)+d)
float.go#L1351: copy(xadj[d:], x.mant)
float.go#L1359: d := len(xadj) - len(y.mant)
float.go#L1363: z.mant, r = z.mant.div(nil, xadj, y.mant)
float.go#L1364: e := int64(x.exp) - int64(y.exp) - int64(d-len(z.mant))*_W
float.go#L1375: z.setExpAndRound(e-fnorm(z.mant), sbit)
float.go#L1395: i := len(x.mant)
float.go#L1396: j := len(y.mant)
float.go#L1401: xm = x.mant[i]
float.go#L1405: ym = y.mant[j]
floatconv.go#L50: z.mant, b, fcount, err = z.mant.scan(r, base, true)
floatconv.go#L64: if len(z.mant) == 0 {
floatconv.go#L85: exp2 := int64(len(z.mant))*_W - fnorm(z.mant)
floatmarsh.go#L36: if len(x.mant) < n {
floatmarsh.go#L37: n = len(x.mant)
floatmarsh.go#L54: x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
floatmarsh.go#L87: z.mant = z.mant.setBytes(buf[10:])
ftoa.go#L96: d.init(x.mant, int(x.exp)-x.mant.bitLen())
ftoa.go#L186: mant := nat(nil).set(x.mant)
ftoa.go#L329: m := x.mant
ftoa.go#L330: switch w := uint32(len(x.mant)) * _W; {
ftoa.go#L380: m := x.mant
ftoa.go#L381: switch w := uint(len(x.mant)) * _W; {
ftoa.go#L431: m := x.mant
sqrt.go#L126: z.mant = z.mant.make(int(prec2/_W) * 2)